<template>
  <div class="index">
    <el-container>
      <el-aside width="200px">
        <Aside></Aside>
      </el-aside>
      <el-container>
        <router-view></router-view>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Aside from "../components/Aside";
export default {
  name: "index",
  components: {
    Aside
  },
  data() {
    return {};
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>

<style lang="scss">
.index {
  width: 100%;
  height: 100%;

  & > .el-container {
    width: 100%;
    height: 100%;

    & > .el-aside {
      background: #324057;
      line-height: 200px;
      padding-left: 0;
    }

    & > .el-container {
      width: 100%;

      & > div {
        width: 100%;

        & > section {
          padding: 20px;
        }
      }
    }
  }
}
</style>
